There's an easier way that doesn't require you to go into the options tag: $("div.id_100 select").val("val2");. Check out the this jQuery ... ... <看更多>
Select2 JQuery Plugin. ... Select2 can take a regular select box like this: ... type='hidden' tag, otherwise data is parsed from select 's option tags. ... <看更多>